package com.xmcowell.sportpacemaster.base;

import com.google.gson.Gson;
import com.xmcowell.sportpacemaster.utils.MyLog;

import java.util.HashMap;

/**
 * Created by Administrator on 2016/12/26.
 */

public class BaseModel {
    public HashMap<String,String> getParam(String code){
        HashMap<String,String> map = new HashMap<>();
        String json = new Gson().toJson(this);
        MyLog.json(json);
        map.put("code",code);
        map.put("inbo",json);
        return map;
    }
    public static HashMap<String,String> getParam(String code,HashMap<String,Object> param){
        HashMap<String,String> map = new HashMap<>();
        String json = new Gson().toJson(param);
        map.put("code",code);
        map.put("inbo",json);
        return map;
    }
}
